package com.acg;

/**
 * 定义状态码和返回 消息
 *
 */
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(500, "失败"),
    SERVICE_ERROR(500, "服务异常"),
    DATA_ERROR(500, "数据异常"),
    SAVE_ERROR(500, "增加失败"),
    UPDATE_ERROR(500, "更新失败"),
    LOGIN_AUTH(500, "未登陆"),
    PERMISSION(500, "没有权限"),
    LOGIN_MOBLE_ERROR(500, "登录失败")
    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
